﻿using Core.Logging;
using log4net;
using Microsoft.Practices.Unity;

namespace Core
{
  ///<summary></summary>
  public class IoC
  {
    ///<summary>Unity Container</summary>
    public static readonly IUnityContainer Container = new UnityContainer();

    private static readonly ILog Logger = LogManager.GetLogger(typeof (SystemLevel));

    ///<summary>Register other services - should be a better way of doing this!</summary>
    public static void RegisterExternals()
    {
      Container.RegisterInstance(Logger);
    }
  }
}